package edu.qvtu.week3.mapper;


import edu.qvtu.week3.entity.Clazz;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;


@Mapper
@Repository
public interface ClazzMapper extends BaseMapper<Clazz> {
    @Select("SELECT * FROM clazz LEFT JOIN student ON student.cid = clazz.cid")
    List<Clazz> findAllClazzStu();

}
